import {request} from '../request'
import {formatDate} from '@/common/utils'

export function getEvaByKey(evaluation){
  return request({
    url:'/api/admin/getEvaByKey',
    method:'post',
    data:{
      eva_id:evaluation.eva_id,
      or_id:evaluation.or_id,
      // eva_content:evaluation.eva_content,
      // eva_time: evaluation.eva_time ?  formatDate(evaluation.eva_time, "yyyy-MM-dd"):'',
      eva_status:evaluation.eva_status,
    }
  })
}

//切换 评论 显示状态
export function updateEvaStatus(id){
  return request({
    url:'/api/admin/updateEvaStatus',
    method:'get',
    params:{
      id
    }
  })
}
